/*
 * @Author: sea 
 * @Date: 2020-05-13 08:54:35 
 * @Last Modified by: sea
 * @Last Modified time: 2020-05-13 09:23:21
 */
.sea-menu > .sea-menu-item{
    display: flex;
    align-items: center;
    position: relative;
    height: 2.3rem;
    padding: 0 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.8rem;
}

.sea-menu > .sea-menu-item > .sea-menu-name{
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #333;
}
.sea-menu > .sea-menu-item > .sea-menu-value{
    max-width: 5rem;
    height: 1rem;
    line-height: 1rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #999;
}
.sea-menu > .sea-menu-item > .sea-menu-icon{
    margin-left: 0.3rem;
    color: #333;
}
.sea-menu > .sea-menu-item > .sea-switch{
    position: relative;
    box-sizing: content-box;
    width: 2.6rem;
    height: 1.4rem;
    border: 1px solid #ccc;
    outline: 0;
    border-radius: 0.75rem;
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, border 0.3s;
    appearance: none;
    -webkit-appearance: none;
}

.sea-menu > .sea-menu-item > .sea-switch:checked{
    border-color: #07C160;
    background-color: #07C160;
}

/* 使用::after伪元素实现圆形按钮的样式 */
.sea-menu > .sea-menu-item > .sea-switch::after{
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: .7rem;
    background-color: #FFFFFF;
    box-shadow: 0 0 2px #999;
    transition: left .3s;
}
/* 选中状态下，更改圆形按钮的位置 */
.sea-menu > .sea-menu-item > .sea-switch:checked::after{
    left: 1.2rem;
}